package com.example.simplenet;

public class Row extends BaseRow {
	
	private String mName;
	private String mDescription;
	private int mLevel;
	private String mWood;
	private String mIron;
	private String mStone;
	private String mGold;
	private String mTime;
	private String mAction;
	
	public Row(String name, String description, String level, String wood,
			String iron, String stone, String gold, String time, String action) {
	
		super(ROW);
		mName = name;
		mDescription = description;
		if (mDescription != null)
			mDescription = mDescription.replaceAll("<br ?/>", "\n");
		mLevel = Integer.parseInt(level);
		mWood = wood;
		mIron = iron;
		mStone = stone;
		mGold = gold;
		mTime = time;
		mAction = action;
		if (mAction != null)
			mAction = mAction.substring(0, mAction.indexOf(";SetFocusTop()"));
	}
	
	public String getName() {
	
		return mName;
	}
	
	public String getDescription() {
	
		return mDescription;
	}
	
	public int getLevel() {
	
		return mLevel;
	}
	
	public String getWoodPrice() {
	
		return mWood;
	}
	
	public String getIronPrice() {
	
		return mIron;
	}
	
	public String getStonePrice() {
	
		return mStone;
	}
	
	public String getGoldPrice() {
	
		return mGold;
	}
	
	public String getTime() {
	
		return mTime;
	}
	
	public String getAction() {
	
		return mAction;
	}
}
